<?php $this->import('Header') ?>
<?php $this->import('User/Top') ?>
	<div class="container">
		<div class="well well-sm dog-info dog-photo">
			<p class="bg-title title">
				<span>我的照片</span>
			</p>
			<div id="photo-list">
				<a href="javascript:;" class="thumbnail js-show-up">
					<i class="glyphicon glyphicon-picture up-icon"></i>
					<span class="up-info" href="javascript:;">上传照片</span>
				</a>
				<?php foreach ($photos as $photo) { ?>
				<div class="thumbnail r" photoId="<?php echo $photo['PhotoId'] ?>" style="display: none;">
					<a href="/dog/photo/detail_<?php echo $photo['PhotoId'] ?>.html">
						<img class="" src="<?php echo \Util\User::getUserPhotoRectangle($photo['Path'], 400) ?>">
						<div class="hidden">
							<strong class="text-danger"><?php echo $photo['Title'] ?></span></strong>
							<strong><?php echo $photo['Desc'] ?></span></strong>
						</div>
					</a>
					<div class="p-info">
						<div class="edit">
							<a href="javascript:;" class="btn btn-default l js-del-btn">删除</a>
							<a href="javascript:;" class="btn btn-danger r js-edit-btn">编辑</a>
						</div>
						<?php if ($photo['Title']) { ?>
						<div><span class="t">标题：</span><span class="c js-title"><?php echo $photo['Title'] ?></span></div>
						<?php } ?>
						<div><span class="t">上传时间：</span><span class="c"><?php echo date('Y-m-d H:i:s', $photo['CreateTime']) ?></span></div>
						<?php if ($photo['Desc']) { ?>
						<div><span class="t">描述：</span><span class="c js-desc"><?php echo $photo['Desc'] ?></span></div>
						<?php } ?>
					</div>
				</div>
				<?php } ?>
			</div>
		</div>
	</div>
<?php $this->import('Footer') ?>
<div id="image_upload" data-name="upload" class="dialog-box" style="display: none">
	<div class="box-title">上传照片</div>
	<div class="box-inner">
		<div class="upload-area">
			<div class="normal"><a href="#" onclick="return false;" class="upload-btn btn btn-default btn18"><span class="text"> 上传采集</span></a>
				<!--<div style="margin-top: 25px" class="note">也可以拖拽图片到该区域，完成上传</div>
				<div style="margin: 10px 0 25px" class="sub">支持单张 10m 以内图片上传</div>-->
				<div style="margin-top: 20px; font-size: 12px" class="sub">[提示]请严格遵守保密法律法规，严禁在互联网上存储、处理、传输、发布涉密信息</div>
			</div>
			<div style="display: none" class="draging">
				<div class="note">释放鼠标以上传</div>
			</div>
			<div style="display: none" class="uploading">
				<div class="animate">上传中...</div>
			</div>
			<div class="dropzone dz-clickable">
				<div class="dz-default dz-message"><span>拖动文件到这里上传</span></div>
			</div>
		</div>
	</div>
	<div class="close-btn" onclick="$.mask.close()"><i></i></div>
</div>
<script>
	seajs.init();
</script>